package cn.xiaoyangh.org.controller;

import cn.xiaoyangh.basic.util.JsonResult;
import cn.xiaoyangh.basic.util.PageList;
import cn.xiaoyangh.org.domain.Employee;
import cn.xiaoyangh.org.domain.Shop;
import cn.xiaoyangh.org.query.EmployeeQuery;
import cn.xiaoyangh.org.service.IEmployeeService;
import cn.xiaoyangh.org.service.IShopService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/shop")
@Api(tags = "员工接口",description = "专门解刨宠物的研究中心")
public class ShopController {
    @Autowired
    private IShopService es;

    @GetMapping
    @ApiOperation(value = "查询全部",notes = "")
    public List<Shop> findAll(){
        List<Shop> list = es.loadAll();
        return list;
    }

}
